// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import ElementUI from 'element-ui'

import 'element-ui/lib/theme-chalk/index.css'

import router from './router'
import axios from './httpConfig/http'
import $ from 'jquery'
import md5 from 'js-md5'
import BaiduMap from 'vue-baidu-map'
import echarts from 'echarts'
Vue.prototype.$echarts = echarts
Vue.prototype.$http = axios
Vue.config.productionTip = false
Vue.prototype.$md5 = md5;

Vue.use(ElementUI)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
  data: function () {
    return {
      project_id: 0
    }
  }
})
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥
  ak: 'T1qwm2h7f9qFX3sgTOo5qdQ2WwQWs1YM'
})
